{% extends 'home.html' %}
{% block right_content %}
    <ol class="breadcrumb">
        <li><a href="{{ url_for('backend_page.home') }}">数据可视化系统</a></li>
        <li><a href="{{ url_for('kingadmin_page.table_list') }}">数据表管理</a></li>
        <li><a href="{{ url_for('kingadmin_page.table_model', model_name=model_name) }}">{{ model_name }}表</a></li>
        <li class="active">查看</li>
    </ol>
    <div class="row" style="margin-top: 30px;">
        <form class="form-horizontal">
            {% for field in fields %}
                <div class="form-group">
                    <label for="content" class="col-sm-2 control-label">{{ field }}</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="content" placeholder="无" value="{{ get_obj_attr(data, field) }}" readonly="">
                    </div>
                </div>
            {% endfor %}
            <a href="{{ buildUrl(url_for('kingadmin_page.table_model_edit', model_name=model_name, id=id)) }}" class="btn btn-primary" style="float: right">编辑</a>
        </form>
    </div>
{% endblock %}